<script type="module" setup>
  import personStore from "../store/sotre.js";

  let person = personStore()
</script>

<template>
  姓名：<input type="text" v-model="person.username"> <br>
  年龄：<input type="text" v-model="person.age"> <br>
  爱好个数：<input type="text" v-model="person.getHobbyCount"><br>
  <input type="button" v-on:click="person.doubleAge()" value="年龄加一"><br>
  爱好：唱歌<input type="checkbox" value="唱歌" v-model="person.hobbies">
       跳舞<input type="checkbox" value="跳舞" v-model="person.hobbies">
       羽毛球<input type="checkbox" value="羽毛球" v-model="person.hobbies">
</template>

<style scoped>

</style>
